package com.ahcfl.dao;

import com.ahcfl.pojo.File;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface FileMapper {



    @Insert("insert into file(id,file_name,type,http_url) values(null,#{fileName},#{type},#{httpUrl})")
    public void saveFile(File file);

    @Select("select count(*) from file")
    public int findAllFileCount();

    @Select("select * from file limit #{start},#{pageSize}")
    public List<File> findFileByPage(@Param("start") int start,
                                     @Param("pageSize") int pageSize);
}
